<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>技能交换列表 - 筛选查询</title>
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <style>
        :root {
            --primary: #3b82f6;
            --primary-light: #eff6ff;
            --secondary: #64748b;
            --light: #f8fafc;
            --dark: #1e293b;
            --success: #10b981;
            --danger: #ef4444;
            --warning: #f59e0b;
            --border: #e2e8f0;
            --shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
            --shadow-hover: 0 10px 15px rgba(0, 0, 0, 0.1);
        }
        
        body {
            font-family: 'Inter', system-ui, sans-serif;
            background-color: var(--light);
            color: var(--dark);
            line-height: 1.6;
        }
        
        .navbar {
            box-shadow: var(--shadow);
            background-color: white;
        }
        
        .container {
            padding: 2rem 0;
        }
        
        .page-header {
            margin-bottom: 2rem;
        }
        
        .page-title {
            font-weight: 700;
            margin-bottom: 0.5rem;
        }
        
        .page-description {
            color: var(--secondary);
            max-width: 800px;
        }
        
        /* 筛选区域样式 */
        .filters-container {
            background-color: white;
            border-radius: 0.75rem;
            box-shadow: var(--shadow);
            padding: 1.5rem;
            margin-bottom: 2rem;
        }
        
        .filter-section {
            margin-bottom: 1.5rem;
            padding-bottom: 1.5rem;
            border-bottom: 1px solid var(--border);
        }
        
        .filter-section:last-child {
            margin-bottom: 0;
            padding-bottom: 0;
            border-bottom: none;
        }
        
        .filter-title {
            font-weight: 600;
            margin-bottom: 1rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        
        .filter-title i {
            color: var(--primary);
        }
        
        .filter-group {
            display: flex;
            flex-wrap: wrap;
            gap: 1rem;
            margin-bottom: 1rem;
        }
        
        .filter-item {
            flex: 1;
            min-width: 200px;
        }
        
        .filter-label {
            display: block;
            margin-bottom: 0.5rem;
            font-weight: 500;
            font-size: 0.9rem;
        }
        
        .form-control {
            width: 100%;
            padding: 0.75rem 1rem;
            border: 1px solid var(--border);
            border-radius: 0.5rem;
            font-size: 0.95rem;
            transition: border-color 0.2s, box-shadow 0.2s;
        }
        
        .form-control:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
        }
        
        /* 标签筛选样式 */
        .tags-filter {
            display: flex;
            flex-wrap: wrap;
            gap: 0.75rem;
        }
        
        .filter-tag {
            padding: 0.4rem 1rem;
            border-radius: 999px;
            background-color: var(--light);
            border: 1px solid var(--border);
            font-size: 0.9rem;
            cursor: pointer;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        
        .filter-tag.active {
            background-color: var(--primary);
            color: white;
            border-color: var(--primary);
        }
        
        .filter-tag:hover:not(.active) {
            background-color: var(--primary-light);
            border-color: var(--primary-light);
        }
        
        /* 高级筛选切换 */
        .advanced-toggle {
            background: none;
            border: none;
            color: var(--primary);
            font-size: 0.95rem;
            font-weight: 500;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            margin-bottom: 1rem;
        }
        
        .advanced-filters {
            display: none;
        }
        
        .advanced-filters.show {
            display: block;
        }
        
        /* 筛选操作按钮 */
        .filter-actions {
            display: flex;
            justify-content: flex-end;
            gap: 1rem;
            margin-top: 1rem;
        }
        
        .btn {
            padding: 0.65rem 1.25rem;
            border-radius: 0.5rem;
            font-weight: 500;
            transition: all 0.2s;
        }
        
        .btn-primary {
            background-color: var(--primary);
            border-color: var(--primary);
        }
        
        .btn-primary:hover {
            background-color: #2563eb;
            border-color: #2563eb;
        }
        
        .btn-outline-secondary {
            background-color: transparent;
            border-color: var(--border);
            color: var(--dark);
        }
        
        .btn-outline-secondary:hover {
            background-color: var(--border);
        }
        
        /* 结果区域样式 */
        .results-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1.5rem;
        }
        
        .results-count {
            font-weight: 500;
        }
        
        .results-count span {
            color: var(--primary);
            font-weight: 700;
        }
        
        .view-options {
            display: flex;
            align-items: center;
            gap: 1rem;
        }
        
        .view-label {
            font-size: 0.9rem;
            color: var(--secondary);
        }
        
        .view-toggle {
            display: flex;
            border: 1px solid var(--border);
            border-radius: 0.5rem;
            overflow: hidden;
        }
        
        .view-btn {
            padding: 0.4rem 0.8rem;
            background-color: white;
            border: none;
            color: var(--secondary);
            cursor: pointer;
        }
        
        .view-btn.active {
            background-color: var(--primary);
            color: white;
        }
        
        .sort-options {
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        
        .sort-select {
            padding: 0.4rem 0.75rem;
            border: 1px solid var(--border);
            border-radius: 0.5rem;
            font-size: 0.9rem;
        }
        
        /* 技能列表网格布局 */
        .skills-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 1.5rem;
            margin-bottom: 2rem;
        }
        
        /* 技能列表列表布局 */
        .skills-list {
            display: none;
            flex-direction: column;
            gap: 1rem;
            margin-bottom: 2rem;
        }
        
        .skills-list.show {
            display: flex;
        }
        
        /* 技能卡片样式 */
        .skill-card {
            background-color: white;
            border-radius: 0.75rem;
            overflow: hidden;
            box-shadow: var(--shadow);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            height: 100%;
        }
        
        .skill-card:hover {
            transform: translateY(-5px);
            box-shadow: var(--shadow-hover);
        }
        
        .skill-image {
            height: 200px;
            position: relative;
            overflow: hidden;
        }
        
        .skill-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.5s ease;
        }
        
        .skill-card:hover .skill-image img {
            transform: scale(1.05);
        }
        
        .no-image {
            width: 100%;
            height: 100%;
            background-color: var(--primary-light);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--primary);
            font-size: 3rem;
        }
        
        .skill-info {
            padding: 1.25rem;
        }
        
        .skill-title {
            font-weight: 600;
            font-size: 1.1rem;
            margin-bottom: 0.5rem;
        }
        
        .skill-provider {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            margin-bottom: 1rem;
            font-size: 0.9rem;
            color: var(--secondary);
        }
        
        .provider-avatar {
            width: 30px;
            height: 30px;
            border-radius: 50%;
            background-color: var(--primary-light);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--primary);
            font-weight: 600;
        }
        
        .skill-description {
            color: var(--secondary);
            font-size: 0.9rem;
            margin-bottom: 1rem;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        
        .skills-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
            margin-bottom: 1rem;
        }
        
        .skill-tag {
            font-size: 0.75rem;
            padding: 0.25rem 0.75rem;
            border-radius: 999px;
        }
        
        .offering-tag {
            background-color: rgba(16, 185, 129, 0.1);
            color: var(--success);
        }
        
        .seeking-tag {
            background-color: rgba(59, 130, 246, 0.1);
            color: var(--primary);
        }
        
        .skill-stats {
            display: flex;
            align-items: center;
            gap: 1.25rem;
            color: var(--secondary);
            font-size: 0.85rem;
            margin-bottom: 1rem;
        }
        
        .stat-item {
            display: flex;
            align-items: center;
            gap: 0.35rem;
        }
        
        .stat-item i {
            font-size: 0.9rem;
        }
        
        .stat-item.likes i {
            color: var(--danger);
        }
        
        .stat-item.comments i {
            color: var(--primary);
        }
        
        .stat-item.views i {
            color: var(--secondary);
        }
        
        .stat-item.saves i {
            color: var(--warning);
        }
        
        .action-buttons {
            display: flex;
            gap: 0.75rem;
        }
        
        /* 列表视图卡片样式 */
        .list-skill-item {
            display: flex;
            background-color: white;
            border-radius: 0.75rem;
            overflow: hidden;
            box-shadow: var(--shadow);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }
        
        .list-skill-item:hover {
            transform: translateY(-3px);
            box-shadow: var(--shadow-hover);
        }
        
        .list-skill-image {
            width: 200px;
            flex-shrink: 0;
        }
        
        .list-skill-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        .list-skill-info {
            flex-grow: 1;
            padding: 1.5rem;
            display: flex;
            flex-direction: column;
        }
        
        .list-skill-header {
            margin-bottom: 0.75rem;
        }
        
        .list-skill-title {
            font-weight: 600;
            font-size: 1.25rem;
            margin-bottom: 0.25rem;
        }
        
        .list-skill-description {
            color: var(--secondary);
            margin-bottom: 1rem;
            flex-grow: 1;
        }
        
        /* 分页样式 */
        .pagination-container {
            display: flex;
            justify-content: center;
            margin-top: 2rem;
        }
        
        .pagination {
            display: flex;
            gap: 0.5rem;
        }
        
        .page-item {
            list-style: none;
        }
        
        .page-link {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 36px;
            height: 36px;
            border-radius: 0.5rem;
            border: 1px solid var(--border);
            color: var(--dark);
            text-decoration: none;
            transition: all 0.2s;
        }
        
        .page-link:hover {
            background-color: var(--primary-light);
            border-color: var(--primary);
            color: var(--primary);
        }
        
        .page-item.active .page-link {
            background-color: var(--primary);
            border-color: var(--primary);
            color: white;
        }
        
        .page-item.disabled .page-link {
            opacity: 0.5;
            pointer-events: none;
        }
        
        /* 响应式调整 */
        @media (max-width: 992px) {
            .list-skill-item {
                flex-direction: column;
            }
            
            .list-skill-image {
                width: 100%;
                height: 200px;
            }
            
            .filter-group {
                flex-direction: column;
            }
            
            .filter-item {
                width: 100%;
            }
        }
        
        @media (max-width: 768px) {
            .results-header {
                flex-direction: column;
                align-items: flex-start;
                gap: 1rem;
            }
            
            .filter-actions {
                flex-direction: column;
            }
            
            .btn {
                width: 100%;
            }
        }
        
        @media (max-width: 576px) {
            .skills-grid {
                grid-template-columns: 1fr;
            }
            
            .tags-filter {
                gap: 0.5rem;
            }
            
            .filter-tag {
                padding: 0.3rem 0.7rem;
                font-size: 0.85rem;
            }
            
            .view-options {
                flex-wrap: wrap;
            }
        }
    </style>
</head>
<body>
    <!-- 导航栏 -->
    <nav class="navbar navbar-expand-lg navbar-light">
        <div class="container">
            <a class="navbar-brand" href="#">
                <i class="fas fa-exchange-alt text-primary me-2"></i>技能交换平台
            </a>
            <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav">
                <span class="navbar-toggler-icon"></span>
            </button>
            <div class="collapse navbar-collapse" id="navbarNav">
                <ul class="navbar-nav me-auto">
                    <li class="nav-item">
                        <a class="nav-link" href="#">首页</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link active" href="#">技能交换</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" href="#">发现人才</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" href="#">成功案例</a>
                    </li>
                </ul>
                <div class="d-flex align-items-center gap-3">
                    <button class="btn btn-outline-primary">登录</button>
                    <button class="btn btn-primary">注册</button>
                </div>
            </div>
        </div>
    </nav>
    
    <!-- 主要内容区 -->
    <div class="container">
        <div class="page-header">
            <h1 class="page-title">技能交换列表</h1>
            <p class="page-description">发现并筛选感兴趣的技能交换机会，找到合适的技能匹配对象</p>
        </div>
        
        <!-- 筛选区域 -->
        <div class="filters-container">
            <!-- 基础筛选 -->
            <div class="filter-section">
                <h3 class="filter-title">
                    <i class="fas fa-filter"></i> 基础筛选
                </h3>
                <div class="filter-group">
                    <div class="filter-item">
                        <label class="filter-label">关键词搜索</label>
                        <input type="text" class="form-control" placeholder="搜索技能名称、描述或标签...">
                    </div>
                    
                    <div class="filter-item">
                        <label class="filter-label">技能类别</label>
                        <select class="form-control">
                            <option value="">全部分类</option>
                            <option value="education">教育培训</option>
                            <option value="art">艺术创作</option>
                            <option value="cooking">烹饪美食</option>
                            <option value="technology">科技数码</option>
                            <option value="language">语言学习</option>
                            <option value="fitness">运动健身</option>
                            <option value="handcraft">手工制作</option>
                            <option value="music">音乐乐器</option>
                        </select>
                    </div>
                    
                    <div class="filter-item">
                        <label class="filter-label">地区</label>
                        <select class="form-control">
                            <option value="">全部地区</option>
                            <option value="beijing">北京</option>
                            <option value="shanghai">上海</option>
                            <option value="guangzhou">广州</option>
                            <option value="shenzhen">深圳</option>
                            <option value="hangzhou">杭州</option>
                            <option value="chengdu">成都</option>
                            <option value="other">其他城市</option>
                            <option value="online">线上交流</option>
                        </select>
                    </div>
                </div>
            </div>
            
            <!-- 技能标签筛选 -->
            <div class="filter-section">
                <h3 class="filter-title">
                    <i class="fas fa-tags"></i> 热门技能标签
                </h3>
                <div class="tags-filter">
                    <div class="filter-tag active">
                        <i class="fas fa-check"></i> 全部标签
                    </div>
                    <div class="filter-tag">
                        <i class="fas fa-code"></i> 编程开发
                    </div>
                    <div class="filter-tag">
                        <i class="fas fa-camera"></i> 摄影
                    </div>
                    <div class="filter-tag">
                        <i class="fas fa-language"></i> 外语
                    </div>
                    <div class="filter-tag">
                        <i class="fas fa-utensils"></i> 烹饪
                    </div>
                    <div class="filter-tag">
                        <i class="fas fa-dumbbell"></i> 健身
                    </div>
                    <div class="filter-tag">
                        <i class="fas fa-paint-brush"></i> 绘画
                    </div>
                    <div class="filter-tag">
                        <i class="fas fa-guitar"></i> 乐器
                    </div>
                    <div class="filter-tag">
                        <i class="fas fa-cut"></i> 剪辑
                    </div>
                    <div class="filter-tag">
                        <i class="fas fa-book"></i> 阅读写作
                    </div>
                </div>
            </div>
            
            <!-- 高级筛选切换 -->
            <button class="advanced-toggle" id="advancedToggle">
                <i class="fas fa-sliders-h"></i> 高级筛选选项
            </button>
            
            <!-- 高级筛选 -->
            <div class="advanced-filters" id="advancedFilters">
                <div class="filter-section">
                    <h3 class="filter-title">
                        <i class="fas fa-sort-amount-down"></i> 活跃度筛选
                    </h3>
                    <div class="filter-group">
                        <div class="filter-item">
                            <label class="filter-label">发布时间</label>
                            <select class="form-control">
                                <option value="">不限时间</option>
                                <option value="today">今天</option>
                                <option value="week">最近一周</option>
                                <option value="month">最近一个月</option>
                                <option value="3months">最近三个月</option>
                            </select>
                        </div>
                        
                        <div class="filter-item">
                            <label class="filter-label">热门程度</label>
                            <select class="form-control">
                                <option value="">不限热度</option>
                                <option value="hottest">最热门</option>
                                <option value="popular">较热门</option>
                                <option value="normal">一般</option>
                            </select>
                        </div>
                        
                        <div class="filter-item">
                            <label class="filter-label">响应速度</label>
                            <select class="form-control">
                                <option value="">不限</option>
                                <option value="fast">快速响应</option>
                                <option value="medium">一般响应</option>
                                <option value="slow">较慢响应</option>
                            </select>
                        </div>
                    </div>
                </div>
                
                <div class="filter-section">
                    <h3 class="filter-title">
                        <i class="fas fa-exchange-alt"></i> 交换类型
                    </h3>
                    <div class="tags-filter">
                        <div class="filter-tag active">
                            <i class="fas fa-check"></i> 全部类型
                        </div>
                        <div class="filter-tag">
                            <i class="fas fa-user-check"></i> 一对一交换
                        </div>
                        <div class="filter-tag">
                            <i class="fas fa-users"></i> 小组交换
                        </div>
                        <div class="filter-tag">
                            <i class="fas fa-laptop"></i> 线上教学
                        </div>
                        <div class="filter-tag">
                            <i class="fas fa-map-marker-alt"></i> 线下见面
                        </div>
                        <div class="filter-tag">
                            <i class="fas fa-calendar-alt"></i> 短期课程
                        </div>
                    </div>
                </div>
            </div>
            
            <!-- 筛选操作按钮 -->
            <div class="filter-actions">
                <button class="btn btn-outline-secondary" id="resetFilters">
                    <i class="fas fa-sync-alt me-1"></i> 重置筛选
                </button>
                <button class="btn btn-primary" id="applyFilters">
                    <i class="fas fa-search me-1"></i> 应用筛选
                </button>
            </div>
        </div>
        
        <!-- 结果区域 -->
        <div class="results-header">
            <div class="results-count">
                找到 <span>248</span> 个符合条件的技能交换
            </div>
            
            <div class="view-options">
                <span class="view-label">视图:</span>
                <div class="view-toggle">
                    <button class="view-btn active" data-view="grid">
                        <i class="fas fa-th"></i>
                    </button>
                    <button class="view-btn" data-view="list">
                        <i class="fas fa-list"></i>
                    </button>
                </div>
                
                <div class="sort-options">
                    <span class="view-label">排序:</span>
                    <select class="sort-select">
                        <option value="relevance">按相关度</option>
                        <option value="latest">最新发布</option>
                        <option value="popular">最受欢迎</option>
                        <option value="comments">评论最多</option>
                    </select>
                </div>
            </div>
        </div>
        
        <!-- 网格视图技能列表 -->
        <div class="skills-grid" id="gridView">
            <!-- 技能1 - 有图片 -->
            <div class="skill-card">
                <div class="skill-image">
                    <img src="https://picsum.photos/600/400?random=1" alt="烹饪技能展示" class="img-fluid">
                </div>
                <div class="skill-info">
                    <div class="skill-title">中式烹饪技巧</div>
                    <div class="skill-provider">
                        <div class="provider-avatar">张</div>
                        <span>张文静</span>
                    </div>
                    <div class="skill-description">
                        擅长川菜和粤菜烹饪，可教授家常菜和宴客菜做法。希望学习吉他基础和简单弹唱。
                    </div>
                    <div class="skills-tags">
                        <span class="skill-tag offering-tag">提供: 烹饪</span>
                        <span class="skill-tag seeking-tag">寻求: 吉他</span>
                    </div>
                    <div class="skill-stats">
                        <div class="stat-item likes">
                            <i class="fas fa-heart"></i>
                            <span>826</span>
                        </div>
                        <div class="stat-item comments">
                            <i class="fas fa-comment"></i>
                            <span>42</span>
                        </div>
                        <div class="stat-item views">
                            <i class="fas fa-eye"></i>
                            <span>3.5k</span>
                        </div>
                        <div class="stat-item saves">
                            <i class="fas fa-bookmark"></i>
                            <span>156</span>
                        </div>
                    </div>
                    <div class="action-buttons">
                        <button class="btn btn-sm btn-primary">联系</button>
                        <button class="btn btn-sm btn-outline-primary">收藏</button>
                    </div>
                </div>
            </div>
            
            <!-- 技能2 - 无图片 -->
            <div class="skill-card">
                <div class="skill-image">
                    <div class="no-image">
                        <i class="fas fa-code"></i>
                    </div>
                </div>
                <div class="skill-info">
                    <div class="skill-title">Web前端开发指导</div>
                    <div class="skill-provider">
                        <div class="provider-avatar">李</div>
                        <span>李思维</span>
                    </div>
                    <div class="skill-description">
                        资深前端工程师，可教授HTML/CSS/JavaScript和React框架。希望学习西班牙语基础。
                    </div>
                    <div class="skills-tags">
                        <span class="skill-tag offering-tag">提供: 编程</span>
                        <span class="skill-tag seeking-tag">寻求: 西班牙语</span>
                    </div>
                    <div class="skill-stats">
                        <div class="stat-item likes">
                            <i class="fas fa-heart"></i>
                            <span>1.2k</span>
                        </div>
                        <div class="stat-item comments">
                            <i class="fas fa-comment"></i>
                            <span>78</span>
                        </div>
                        <div class="stat-item views">
                            <i class="fas fa-eye"></i>
                            <span>5.7k</span>
                        </div>
                        <div class="stat-item saves">
                            <i class="fas fa-bookmark"></i>
                            <span>231</span>
                        </div>
                    </div>
                    <div class="action-buttons">
                        <button class="btn btn-sm btn-primary">联系</button>
                        <button class="btn btn-sm btn-outline-primary">收藏</button>
                    </div>
                </div>
            </div>
            
            <!-- 技能3 - 有图片 -->
            <div class="skill-card">
                <div class="skill-image">
                    <img src="https://picsum.photos/600/400?random=3" alt="健身技能展示" class="img-fluid">
                </div>
                <div class="skill-info">
                    <div class="skill-title">健身指导与塑形计划</div>
                    <div class="skill-provider">
                        <div class="provider-avatar">王</div>
                        <span>王大力</span>
                    </div>
                    <div class="skill-description">
                        专业健身教练，提供个性化训练计划和饮食建议。希望学习钢琴入门和音乐理论。
                    </div>
                    <div class="skills-tags">
                        <span class="skill-tag offering-tag">提供: 健身</span>
                        <span class="skill-tag seeking-tag">寻求: 钢琴</span>
                    </div>
                    <div class="skill-stats">
                        <div class="stat-item likes">
                            <i class="fas fa-heart"></i>
                            <span>954</span>
                        </div>
                        <div class="stat-item comments">
                            <i class="fas fa-comment"></i>
                            <span>56</span>
                        </div>
                        <div class="stat-item views">
                            <i class="fas fa-eye"></i>
                            <span>4.2k</span>
                        </div>
                        <div class="stat-item saves">
                            <i class="fas fa-bookmark"></i>
                            <span>189</span>
                        </div>
                    </div>
                    <div class="action-buttons">
                        <button class="btn btn-sm btn-primary">联系</button>
                        <button class="btn btn-sm btn-outline-outline-primary">收藏</button>
                    </div>
                </div>
            </div>
            
            <!-- 技能4 - 有图片 -->
            <div class="skill-card">
                <div class="skill-image">
                    <img src="https://picsum.photos/600/400?random=4" alt="摄影技能展示" class="img-fluid">
                </div>
                <div class="skill-info">
                    <div class="skill-title">专业摄影技巧</div>
                    <div class="skill-provider">
                        <div class="provider-avatar">林</div>
                        <span>林小明</span>
                    </div>
                    <div class="skill-description">
                        提供专业摄影技巧指导，包括构图、用光和后期处理。希望学习基础视频剪辑。
                    </div>
                    <div class="skills-tags">
                        <span class="skill-tag offering-tag">提供: 摄影</span>
                        <span class="skill-tag seeking-tag">寻求: 视频剪辑</span>
                    </div>
                    <div class="skill-stats">
                        <div class="stat-item likes">
                            <i class="fas fa-heart"></i>
                            <span>2.5k</span>
                        </div>
                        <div class="stat-item comments">
                            <i class="fas fa-comment"></i>
                            <span>328</span>
                        </div>
                        <div class="stat-item views">
                            <i class="fas fa-eye"></i>
                            <span>15.6k</span>
                        </div>
                        <div class="stat-item saves">
                            <i class="fas fa-bookmark"></i>
                            <span>876</span>
                        </div>
                    </div>
                    <div class="action-buttons">
                        <button class="btn btn-sm btn-primary">联系</button>
                        <button class="btn btn-sm btn-outline-primary">收藏</button>
                    </div>
                </div>
            </div>
        </div>
        
        <!-- 列表视图技能列表 -->
        <div class="skills-list" id="listView">
            <!-- 技能1 - 有图片 -->
            <div class="list-skill-item">
                <div class="list-skill-image">
                    <img src="https://picsum.photos/600/400?random=1" alt="烹饪技能展示" class="img-fluid">
                </div>
                <div class="list-skill-info">
                    <div class="list-skill-header">
                        <div class="list-skill-title">中式烹饪技巧</div>
                        <div class="skill-provider">
                            <div class="provider-avatar">张</div>
                            <span>张文静</span>
                        </div>
                    </div>
                    <div class="list-skill-description">
                        擅长川菜和粤菜烹饪，可教授家常菜和宴客菜做法。希望学习吉他基础和简单弹唱。有5年家庭烹饪经验，曾在社区烹饪比赛中获奖。
                    </div>
                    <div class="skills-tags">
                        <span class="skill-tag offering-tag">提供: 烹饪</span>
                        <span class="skill-tag offering-tag">提供: 家常菜</span>
                        <span class="skill-tag seeking-tag">寻求: 吉他</span>
                        <span class="skill-tag seeking-tag">寻求: 弹唱</span>
                    </div>
                    <div class="skill-stats">
                        <div class="stat-item likes">
                            <i class="fas fa-heart"></i>
                            <span>826 点赞</span>
                        </div>
                        <div class="stat-item comments">
                            <i class="fas fa-comment"></i>
                            <span>42 评论</span>
                        </div>
                        <div class="stat-item views">
                            <i class="fas fa-eye"></i>
                            <span>3.5k 浏览</span>
                        </div>
                        <div class="stat-item saves">
                            <i class="fas fa-bookmark"></i>
                            <span>156 收藏</span>
                        </div>
                    </div>
                    <div class="action-buttons">
                        <button class="btn btn-sm btn-primary">联系</button>
                        <button class="btn btn-sm btn-outline-primary">收藏</button>
                    </div>
                </div>
            </div>
            
            <!-- 技能2 - 无图片 -->
            <div class="list-skill-item">
                <div class="list-skill-image">
                    <div class="no-image">
                        <i class="fas fa-code"></i>
                    </div>
                </div>
                <div class="list-skill-info">
                    <div class="list-skill-header">
                        <div class="list-skill-title">Web前端开发指导</div>
                        <div class="skill-provider">
                            <div class="provider-avatar">李</div>
                            <span>李思维</span>
                        </div>
                    </div>
                    <div class="list-skill-description">
                        资深前端工程师，8年工作经验，可教授HTML/CSS/JavaScript基础到高级知识，以及React、Vue等主流框架。提供项目实战指导，适合零基础入门或有经验的开发者提升技能。希望学习西班牙语基础，用于计划中的西班牙旅行。
                    </div>
                    <div class="skills-tags">
                        <span class="skill-tag offering-tag">提供: 编程</span>
                        <span class="skill-tag offering-tag">提供: Web开发</span>
                        <span class="skill-tag offering-tag">提供: React</span>
                        <span class="skill-tag seeking-tag">寻求: 西班牙语</span>
                    </div>
                    <div class="skill-stats">
                        <div class="stat-item likes">
                            <i class="fas fa-heart"></i>
                            <span>1.2k 点赞</span>
                        </div>
                        <div class="stat-item comments">
                            <i class="fas fa-comment"></i>
                            <span>78 评论</span>
                        </div>
                        <div class="stat-item views">
                            <i class="fas fa-eye"></i>
                            <span>5.7k 浏览</span>
                        </div>
                        <div class="stat-item saves">
                            <i class="fas fa-bookmark"></i>
                            <span>231 收藏</span>
                        </div>
                    </div>
                    <div class="action-buttons">
                        <button class="btn btn-sm btn-primary">联系</button>
                        <button class="btn btn-sm btn-outline-primary">收藏</button>
                    </div>
                </div>
            </div>
        </div>
        
        <!-- 分页 -->
        <div class="pagination-container">
            <ul class="pagination">
                <li class="page-item disabled">
                    <a class="page-link" href="#" aria-label="Previous">
                        <i class="fas fa-chevron-left"></i>
                    </a>
                </li>
                <li class="page-item active"><a class="page-link" href="#">1</a></li>
                <li class="page-item"><a class="page-link" href="#">2</a></li>
                <li class="page-item"><a class="page-link" href="#">3</a></li>
                <li class="page-item"><a class="page-link" href="#">4</a></li>
                <li class="page-item"><a class="page-link" href="#">5</a></li>
                <li class="page-item">
                    <a class="page-link" href="#" aria-label="Next">
                        <i class="fas fa-chevron-right"></i>
                    </a>
                </li>
            </ul>
        </div>
    </div>
    
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
    <script>
        document.addEventListener('DOMContentLoaded', function() {
            // 高级筛选切换功能
            const advancedToggle = document.getElementById('advancedToggle');
            const advancedFilters = document.getElementById('advancedFilters');
            
            advancedToggle.addEventListener('click', function() {
                advancedFilters.classList.toggle('show');
                const icon = this.querySelector('i');
                
                if (advancedFilters.classList.contains('show')) {
                    icon.classList.remove('fa-sliders-h');
                    icon.classList.add('fa-chevron-up');
                    this.textContent = ' 收起高级筛选选项';
                    this.prepend(icon);
                } else {
                    icon.classList.remove('fa-chevron-up');
                    icon.classList.add('fa-sliders-h');
                    this.textContent = ' 高级筛选选项';
                    this.prepend(icon);
                }
            });
            
            // 标签筛选功能
            const filterTags = document.querySelectorAll('.filter-tag');
            filterTags.forEach(tag => {
                tag.addEventListener('click', function() {
                    // 如果是"全部"标签，取消其他同组标签的选中状态
                    if (this.textContent.includes('全部')) {
                        const parentGroup = this.parentElement;
                        parentGroup.querySelectorAll('.filter-tag').forEach(t => {
                            t.classList.remove('active');
                        });
                        this.classList.add('active');
                    } else {
                        // 如果点击的不是"全部"标签，取消同组"全部"标签的选中状态
                        const parentGroup = this.parentElement;
                        parentGroup.querySelectorAll('.filter-tag').forEach(t => {
                            if (t.textContent.includes('全部')) {
                                t.classList.remove('active');
                            }
                        });
                        this.classList.toggle('active');
                    }
                });
            });
            
            // 视图切换功能
            const viewButtons = document.querySelectorAll('.view-btn');
            const gridView = document.getElementById('gridView');
            const listView = document.getElementById('listView');
            
            viewButtons.forEach(button => {
                button.addEventListener('click', function() {
                    viewButtons.forEach(btn => btn.classList.remove('active'));
                    this.classList.add('active');
                    
                    const viewType = this.getAttribute('data-view');
                    if (viewType === 'grid') {
                        gridView.style.display = 'grid';
                        listView.classList.remove('show');
                    } else {
                        gridView.style.display = 'none';
                        listView.classList.add('show');
                    }
                });
            });
            
            // 筛选按钮功能
            const applyFiltersBtn = document.getElementById('applyFilters');
            applyFiltersBtn.addEventListener('click', function() {
                // 模拟筛选应用
                alert('筛选条件已应用，共找到248个符合条件的技能交换');
            });
            
            // 重置筛选按钮功能
            const resetFiltersBtn = document.getElementById('resetFilters');
            resetFiltersBtn.addEventListener('click', function() {
                // 重置所有输入框
                document.querySelectorAll('.form-control').forEach(input => {
                    if (input.tagName === 'INPUT') {
                        input.value = '';
                    } else if (input.tagName === 'SELECT') {
                        input.selectedIndex = 0;
                    }
                });
                
                // 重置所有标签筛选
                document.querySelectorAll('.filter-tag').forEach(tag => {
                    tag.classList.remove('active');
                    if (tag.textContent.includes('全部')) {
                        tag.classList.add('active');
                    }
                });
                
                // 隐藏高级筛选
                if (advancedFilters.classList.contains('show')) {
                    advancedToggle.click();
                }
                
                // 提示重置完成
                alert('所有筛选条件已重置');
            });
            
            // 收藏按钮交互
            const saveButtons = document.querySelectorAll('.btn-outline-primary');
            saveButtons.forEach(button => {
                button.addEventListener('click', function() {
                    if (this.textContent.includes('收藏')) {
                        this.innerHTML = '<i class="fas fa-check"></i> 已收藏';
                        this.classList.remove('btn-outline-primary');
                        this.classList.add('btn-success');
                    } else {
                        this.innerHTML = '收藏';
                        this.classList.remove('btn-success');
                        this.classList.add('btn-outline-primary');
                    }
                });
            });
            
            // 联系按钮交互
            const contactButtons = document.querySelectorAll('.btn-primary');
            contactButtons.forEach(button => {
                button.addEventListener('click', function() {
                    const skillTitle = this.closest('.skill-card, .list-skill-item')
                        .querySelector('.skill-title, .list-skill-title').textContent;
                    const providerName = this.closest('.skill-card, .list-skill-item')
                        .querySelector('.skill-provider span').textContent;
                    alert(`正在联系${providerName}，咨询「${skillTitle}」的技能交换详情`);
                });
            });
            
            // 技能卡片点击事件
            const skillCards = document.querySelectorAll('.skill-card, .list-skill-item');
            skillCards.forEach(card => {
                card.addEventListener('click', function(e) {
                    // 如果点击的是按钮，则不触发卡片跳转
                    if (e.target.closest('.btn')) {
                        return;
                    }
                    
                    const skillTitle = this.querySelector('.skill-title, .list-skill-title').textContent;
                    alert(`查看「${skillTitle}」的详细信息`);
                });
            });
        });
    </script>
</body>
</html>
    
